<div bsModal #createOrEditModal="bs-modal" class="modal fade" tabindex="-1" role="dialog"
    aria-labelledby="createOrEditModal" aria-hidden="true" [config]="{backdrop: 'static'}">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <H4 class="modal-title">
                    <span>打印预览</span>
                </H4>
                <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body" #print>
                <div class="container">
                    <div class="row">
                        <div style="width: 50%;display: inline-block;">
                            <p class=" text-center" style="width: 80%;margin: auto;">
                                <qr-code [value]="id"  style="width: 80%"></qr-code>
                            </p>
                        </div>
                        <div style=" width: 50%;padding-top: 6px;">
                            <H3 style="text-align: left;">{{locationName}}</H3>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12 text-center">
                            <!-- 廊坊汇钰 -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button [disabled]="saving" type="button" class="btn btn-default"
                    (click)="close()">{{l("Cancel")}}</button>
                <essence-ng2-print [popTitle]="'打印标签'" [btnText]="'打印标签'" [btnClass]="{'btn': true, 'btn-info': true}"
                    [printHTML]="print" [printStyle]="printStyle" [printCSS]="printCSS" [showBtn]="printBtnBoolean"
                    (click)="beforePrint()" (printComplete)="printComplete()">
                </essence-ng2-print>
            </div>
        </div>
    </div>
</div>